package cn.isjinhao.se.sql.grammar.statement.retrieve.represention;

import cn.isjinhao.se.sql.grammar.CurdStatementVisitor;
import cn.isjinhao.se.sql.grammar.CurdStatement;
import cn.isjinhao.se.sql.lexical.token.Token;
import java.util.List;

/**
 * @author 01395265
 * @date 2021/3/3
 */
public class ColumnSeg extends CurdStatement {

    private Token restriction;

    private List<CurdStatement> columnRepList;

    @Override
    public <R> R accept(CurdStatementVisitor<R> curdStatementVisitor) {
        return curdStatementVisitor.visitColumnSeg(this);
    }

    public ColumnSeg(Token restriction, List<CurdStatement> columnRepList) {
        this.restriction = restriction;
        this.columnRepList = columnRepList;
    }

    public Token getRestriction() {
        return restriction;
    }

    public List<CurdStatement> getColumnRepList() {
        return columnRepList;
    }
}
